const state = {
  lastestNotice: {
    noticeTitle: "",
    noticeId: "",
  },
  totalCount: {
    alarmTotal: 0,
    noticeTotal: 0,
    tongTotal: 0,
  },
  historyResult: {},
  alarmOverview: {
    count: 0, //告警总数
    pending: 0, //未处理告警数
    solved: 0, //已处理告警数
    alarmInfos: [], //前10列表
    privilegeAlarm: [], //监测
    excAlarm: [], //异常
  },
};
const mutations = {
  SET_LASTEST_NOTICE: (state, lastestNotice) => {
    state.lastestNotice = lastestNotice;
  },
  SET_TOTAL_COUNT: (state, totalCount) => {
    state.totalCount = totalCount;
  },

  SET_DATA_RESULTS: (state, historyResult) => {
    state.historyResult = historyResult;
  },

  SET_ALRAM_OVERVIEW_DATA: (state, alarmOverview) => {
    state.alarmOverview = alarmOverview;
  },
};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
